package com.yuandengta.yomall.order.to;

import com.yuandengta.yomall.order.entity.OrderEntity;
import com.yuandengta.yomall.order.entity.OrderItemEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 封装订单数据 {@link OrderCreateTO}
 *
 * @author Kevin
 * @email: 178676392@qq.com
 */
@Data
public class OrderCreateTO {
    /**
     * 订单
     */
    private OrderEntity order;
    /**
     * 订单项
     */
    private List<OrderItemEntity> orderItems;
    /**
     * 应付金额
     */
    private BigDecimal payPrice;
    /**
     * 运费
     */
    private BigDecimal fare;
}
